/*
 * NOTICE: THIS SOFTWARE IS THE PROPERTY OF AND CONTAINS CONFIDENTIAL INFORMATION OF POWER SHARE AND/OR ITS AFFILIATES
 * OR SUBSIDIARIES AND SHALL NOT BE DISCLOSED WITHOUT PRIOR WRITTEN PERMISSION. LICENSED CUSTOMERS MAY COPY AND ADAPT
 * THIS SOFTWARE FOR THEIR OWN USE IN ACCORDANCE WITH THE TERMS OF THEIR SOFTWARE LICENSE AGREEMENT. ALL OTHER RIGHTS
 * RESERVED.
 *
 * COPYRIGHT © 2022 FC. ALL RIGHTS RESERVED. THE WORD AND DESIGN MARKS SET FORTH HEREIN ARE TRADEMARKS AND/OR
 * REGISTERED TRADEMARKS OF POWER SHARE AND/OR ITS AFFILIATES AND SUBSIDIARIES. ALL RIGHTS RESERVED. ALL OTHER
 * TRADEMARKS LISTED HEREIN ARE THE PROPERTY OF THEIR RESPECTIVE OWNERS.
 *
 */

package com.ckx.base;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 通用分页请求参数
 *
 * @author e-qingzhen.li
 * @date 2022-10-31 14:00
 */
@Setter
@Getter
public abstract class PageRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 第几页
     */
    private Integer pageIndex = 1;

    /**
     * 分页大小
     */
    private Integer pageSize = 10;

    /**
     * 排序条件
     */
    private String orderBy;

    /**
     * 排序方式 是否降序: true 降序
     */
    private Boolean desc;
}
